package com.example.go_drink_water_plugin;

import com.example.go_drink_water_plugin.component.DrinkWaterNotification;
import com.intellij.notification.Notifications;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.ProjectManagerListener;
import org.jetbrains.annotations.NotNull;

/**
 * @author wanghuafu
 * @version 0.1
 * @date 2023/11/30
 */
public class MyProjectManagerListener implements ProjectManagerListener {

    @Override
    public void projectOpened(@NotNull Project project) {
        // 当项目打开时，显示通知
        DrinkWaterNotification notification = new DrinkWaterNotification(
                project);
        Notifications.Bus.notify(notification, project);
    }
}
